getTextVariationAxes

abstract fun getTextVariationAxes(block: DesignBlock, from: Int = -1, to: Int = -1): List<List<VariationAxisValue>>

Returns the unique variation axis value lists across the grapheme range. Each list holds one entry per tag, sorted by tag. A range without axis values returns one empty list.

Return

the unique axis value lists in the range.

Parameters

block

the text block whose axis values should be returned.

from

the start index of the grapheme range. Negative falls back to the current cursor/selection start when editing, or the start of the entire text otherwise.

to

the grapheme index after the last grapheme. Negative falls back to the current cursor/selection end when editing, or the end of the entire text otherwise.